package com.lnking.lnkingplace.controller;


import com.lnking.common.http.ReturnResult;
import com.lnking.lnkingplace.model.dto.inspect.InspectDetailDto;
import com.lnking.lnkingplace.model.request.inspect.InspectSearchRequest;
import com.lnking.lnkingplace.model.request.inspect.inspectGroup.InspectGroupUpdateRequest;
import com.lnking.lnkingplace.service.IInspectGroupService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author sn
 * @since 2022-09-21
 */
@RestController
@Api(tags = "检测组别")
@RequestMapping("/inspect-group")
public class InspectGroupController {


    @Autowired
    IInspectGroupService iInspectGroupService;
    @ApiOperation("查询列表")
    @GetMapping("/list")
    public ReturnResult getList(InspectSearchRequest params) {
        return ReturnResult.success(iInspectGroupService.pageList(params));
    }

    @ApiOperation("添加修改人员")
    @PostMapping("/update")
    public ReturnResult updateUserIds(@RequestBody InspectGroupUpdateRequest params) {
         iInspectGroupService.UpdateUserIds(params);
        return ReturnResult.success();
    }


}
